using System;
using System.Collections.Generic;
using UnityEngine;

public class KeyToExit : MonoBehaviour
{
	public KeyCode KeyThatExits = KeyCode.Escape;
	
	void Start()
	{
	}
	
	void Update()
	{
		if (Input.GetKeyDown(KeyThatExits))
		{
			Application.Quit();
		}
	}
	
}
